"use strict";
/**
 * @author zhaojiuyi
 * @date 2022/5/30-9:34
 * @version 1.0.0
 */
import store from '@/store/index';
import {getRequest} from '@/util/requests/requests';
export default {
  login(logindata){
    return getRequest({
      url: '/login/cellphone',
      params: logindata,
      isJson: 1
    })
  },
  getUserInfo() {
    return getRequest({
      url: '/user/detail',
      params: {
        uid: store.state.userId
      }
    })
  },
  getHotTopic(){
    return getRequest({
      url: '/hot/topic',
      params: {
        limit: 20
      }
    })
  },
  getPlayList(){
    return getRequest({
      url: '/user/playlist',
      params: {
        uid: store.state.userId,
        limit: 6
      }
    })
  },
  getTimeMachine(){
    return getRequest({
      url: '/vip/timemachine'
    })
  }
}
